package com.shiguiwu.springmybatis.spring.event.spring;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * @description: 发送邮件监听器
 * @author: stone
 * @date: Created by 2021/4/24 22:32
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.spring.event.spring
 */
@Component
public class SendEmailListener implements ApplicationListener<UserRegEvent> {
    @Override
    public void onApplicationEvent(UserRegEvent event) {
        System.out.println(event.getUsername() + "发送邮件成功！！！");

    }


}
